home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Eagles Nest BBS 8
/
Eagles_Nest_Mac_Collection_Disc_8.TOAST
/
Developer Tools⁄Additions
/
InsideBa1994
/
InsideBasic-94
/
IB 94
/
Speech Mgr
/
SPEECH2.GLBL
< prev
next >
Wrap
Text File
|
1993-05-22
|
3KB
|
95 lines
' FILE: SPEECH.GLBL
'______________________________________________
' Speech Manager Globals Part 1 & 2
' ©1993 Ariel Publishing by Raoul Watson
'______________________________________________
' error results equates
_synthOpenFailed = -241
_voiceNotFound = -244
_invalidComponentID = -3000
' gender equates
_kNeuter = 0
_kMale = 1
_kFemale = 2
' SpeakBuffer equates
_kSpeakImmediate = 0
_kNoEndingProsody = 1
_kNoSpeechInterrupt = 2
_kPreflightThenPause = 4
' Pause and StopSpeechAt equates
_kImmediate = 0
_kEndOfWord = 1
_kEndOfSentence = 2
' GetSpeechInfo & SetSpeechInfo selectors
_soStatus = _"stat"
_soErrors = _"erro"
_soInputMode = _"inpt"
_soCharacterMode = _"char"
_soNumberMode = _"nmbr"
_soRate = _"rate"
_soPitchBase = _"pbas"
_soPitchMod = _"pmod"
_soVolume = _"volm"
_soSynthType = _"vers"
_soRecentSync = _"sync"
_soPhonemeSymbols = _"phsy"
_soCurrentVoice = _"cvox"
_soCommandDelimiter = _"dlim"
_soReset = _"rset"
_soCurrentA5 = _"myA5"
_soRefCon = _"refc"
_soTextDoneCallBack = _"tdcb"
_soSpeechDoneCallBack= _"sdcb"
_soSyncCallBack = _"sycb"
_soErrorCallBack = _"ercb"
_soPhonemeCallBack = _"phcb"
_soWordCallBack = _"wdcb"
_soSynthExtension = _"xtnd"
' voice channel, pitch, rate, # of voices
DIM chan&,rate&,pitch&,numVoices
'The VoiceSpec record
DIM VoiceSpec;0
DIM creator&,id&
' VoiceDescription record
DIM VoiceDescription;0
DIM length& 'size of structure
DIM creator1&,id1& 'creator and ID
DIM version& 'version
DIM 63 voiceName$ 'voice name
DIM 255 comment$ 'additional comments
DIM gender,age,script,language,region
DIM reserved&,R2&,R3&,R4& 'reserved
' length of VoiceSpec record. Need to be calculated
' in the Main program
DIM infolength&
' For Set & GetSpeechInfo
' for _"stat" call or first "long" for
' _"inpt",_"char",_"nmbr",_"rate",_"pbas",_"pmod",_"volm"
DIM speechInfo&
DIM SpeechStatusInfo;0
DIM outputBusy;0
DIM outputPaused,inputBytesLeft&,phonemeCode
' for _"erro" call
DIM SpeechErrorInfo;0
DIM count,oldest,oldPos&,newest,newPos&
' for _"vers" call
DIM SpeechVersionInfo;0
DIM synthType&,synthSubType&,synthManufacturer&
DIM synthFlags&,synthVersion&